 console = new Object();
 console.log = function(msg) {
     var iframe = document.createElement('iframe');
     iframe.setAttribute("src", "ios-log:" + msg);
     document.documentElement.appendChild(iframe);
     iframe.parentNode.removeChild(iframe);
     iframe = null;
 };
 console.debug = console.log;
 console.info = console.log;
 console.warn = console.log;
 console.error = console.log;

var CUSTOM_PROTOCOL_SCHEME = 'xljsbridge';
 function bridgeCall(params) {
     var iframe = document.createElement('iframe')
     iframe.setAttribute("src", CUSTOM_PROTOCOL_SCHEME + '://' + params);
     document.documentElement.appendChild(iframe)
     iframe.parentNode.removeChild(iframe);
     iframe = null;
 };